import Vue from 'vue'
import Router from 'vue-router'
import index1 from '@/pages/index.vue'
import Home from '@/pages/home.vue'
import Login from '@/pages/login.vue'
import telLogin from '@/pages/telLogin.vue'
import cashApply from '@/pages/cashApply.vue'
import custom from '@/pages/customer.vue'
import achievement from '@/pages/achievement.vue'
import rankingList from '@/pages/rankingList.vue'
import getPutforward from '@/pages/getPutforward.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: "/",
      name: 'index',
      component: index1,
      meta: {
        title: '主页'
      }
    },
    {
      path: "/home",
      name: 'Home',
      component: Home,
      meta: {
        title: '主页'
      }
    },
    {
      path: '/login',
      name: 'Login',
      component: Login,
      meta: {
        title: '登录'
      }
    },
    {
      path: '/telLogin',
      name: 'telLogin',
      component: telLogin,
      meta: {
        title: '手机号登录'
      }
    },
    {
      path: '/cashApply',
      name: 'cashApply',
      component: cashApply,
      meta: {
        title: '提现申请'
      }
    },
    {
      path: '/custom',
      name: 'custom',
      component: custom,
      meta: {
        title: '我的客户'
      }
    },
    {
      path: '/achievement',
      name: 'achievement',
      component: achievement,
      meta: {
        title: '我的业绩'
      }
    },
    {
      path: '/rankingList',
      name: 'rankingList',
      component: rankingList,
      meta: {
        title: '排行榜'
      }
    },
    {
      path: '/getPutforward',
      name: 'getPutforward',
      component: getPutforward,
      meta: {
        title: '提现记录'
      }
    },
    
    
  ]
  // mode:'history'
})
